home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
CMAcceleration.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
123 lines
{
File: CMAcceleration.p
Contains: ColorSync 2.0 Acceleration Component Interfaces
Version: Technology: ColorSync 2.0
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT CMAcceleration;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __CMACCELERATION__}
{$SETC __CMACCELERATION__ := 1}
{$I+}
{$SETC CMAccelerationIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __MEMORY__}
{$I Memory.p}
{$ENDC}
{$IFC UNDEFINED __COMPONENTS__}
{$I Components.p}
{$ENDC}
{$IFC UNDEFINED __CMAPPLICATION__}
{$I CMApplication.p}
{$ENDC}
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
{$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
{ -------------------------------------- version info }
CONST
cmAccelerationInterfaceVersion = 1;
{ -------------------------------------- Component Type }
cmAccelerationComponentType = 'csac';
{ -------------------------------------- Required Component function selectors }
cmLoadTables = 0;
cmCalculateData = 1;
{ -------------------------------------- table data for acceleration component }
TYPE
CMAccelerationTableDataPtr = ^CMAccelerationTableData;
CMAccelerationTableData = RECORD
inputLutEntryCount: LONGINT; { count of entries for input lut for one dimension }
inputLutWordSize: LONGINT; { count of bits of each entry ( e.g. 16 for WORD ) }
inputLut: Handle; { handle to input lut }
outputLutEntryCount: LONGINT; { count of entries for output lut for one dimension }
outputLutWordSize: LONGINT; { count of bits of each entry ( e.g. 8 for BYTE ) }
outputLut: Handle; { handle to output lut }
colorLutInDim: LONGINT; { input dimension ( e.g. 3 for LAB ; 4 for CMYK ) }
colorLutOutDim: LONGINT; { output dimension ( e.g. 3 for LAB ; 4 for CMYK ) }
colorLutGridPoints: LONGINT; { count of gridpoints for color lut ( for one Dimension ) }
colorLutWordSize: LONGINT; { count of bits of each entry ( e.g. 8 for BYTE ) }
colorLut: Handle; { handle to color lut }
inputColorSpace: CMBitmapColorSpace; { packing info for input }
outputColorSpace: CMBitmapColorSpace; { packing info for output }
userData: Ptr;
reserved1: LONGINT;
reserved2: LONGINT;
reserved3: LONGINT;
reserved4: LONGINT;
reserved5: LONGINT;
END;
CMAccelerationTableDataHdl = ^CMAccelerationTableDataPtr;
{ -------------------------------------- calc data for acceleration component }
CMAccelerationCalcDataPtr = ^CMAccelerationCalcData;
CMAccelerationCalcData = RECORD
pixelCount: LONGINT; { count of input pixels }
inputData: Ptr; { input array }
outputData: Ptr; { output array }
reserved1: LONGINT;
reserved2: LONGINT;
END;
CMAccelerationCalcDataHdl = ^CMAccelerationCalcDataPtr;
{
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
A c c e l e r a t i o n C o m p o n e n t I n t e r f a c e s
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
}
FUNCTION CMAccelerationLoadTables(CMSession: ComponentInstance; tableData: CMAccelerationTableDataPtr): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0000, $7000, $A82A;
{$ENDC}
FUNCTION CMAccelerationCalculateData(CMSession: ComponentInstance; calcData: CMAccelerationCalcDataPtr): CMError;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0001, $7000, $A82A;
{$ENDC}
{$ENDC}
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := CMAccelerationIncludes}
{$ENDC} {__CMACCELERATION__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}